package br.com.FII.anotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import br.com.FII.validation.IntervaloValidation;

@Documented
@Constraint( validatedBy = IntervaloValidation.class )
@Target( { ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE } )
@Retention( RetentionPolicy.RUNTIME )
public @interface IntervaloString {

	String message() default "A quantidade de caracteres deve estar entre {0} e {1}";

	int minimumValue() default 0;

	int maximumValue();

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};

}
